<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" th:attr="content=${keywords}" />
<meta name="Description" th:attr="content=${description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title></title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link th:href="${ecs_css_path}" rel="stylesheet" type="text/css" />

<!-- auto replace start-->
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/myship.js"></script>
<!-- auto replace end-->
</head>
<body>
<div th:replace="common/tpls/page_header_tpl::page_header"></div>

  <div th:replace="common/tpls/ur_here_tpl::ur_here"></div>
<div class="block">
  <h5><span></span></h5>
  <div class="blank"></div>
  <!-- 开始收货人信息填写界面 -->
      <!-- auto replace start-->
<script type="text/javascript" src="/static/js/region.js"></script>
<script type="text/javascript" src="/static/js/utils.js"></script>
<!-- auto replace end-->
      <script type="text/javascript">
        region.isAdmin = false;
        {foreach from=$lang.flow_js item=item key=key}
        var  = "";
        {/foreach}

        {literal}
        onload = function() {
          if (!document.all)
          {
            document.forms['theForm'].reset();
          }
        }

        /* $Id : myship.js 4865 2007-01-31 14:04:10Z Hackfan $ */

/* *
 * 检查收货地址信息表单中填写的内容
 */
function checkForm(frm)
{
  var msg = new Array();
  var err = false;

  if (frm.elements['country'].value == 0)
  {
    msg.push(country_not_null);
    err = true;
  }

  if (frm.elements['province'].value == 0 && frm.elements['province'].length > 1)
  {
    err = true;
    msg.push(province_not_null);
  }

  if (frm.elements['city'].value == 0 && frm.elements['city'].length > 1)
  {
    err = true;
    msg.push(city_not_null);
  }

  if (frm.elements['district'].length > 1)
  {
    if (frm.elements['district'].value == 0)
    {
      err = true;
      msg.push(district_not_null);
    }
  }

  if (err)
  {
    message = msg.join("\n");
    alert(message);
  }
  return ! err;
}

        {/literal}
      </script>
<form action="myship.php" method="post" name="theForm" id="theForm" onsubmit="return checkForm(this)">
    <!-- #BeginLibraryItem "/Library/myship.lbi" --><!-- #EndLibraryItem -->
    </form>
</div>

<div th:replace="common/tpls/page_footer_tpl::page_footer"></div>
</body>
</html>
